﻿using System;

namespace Coding4Fun.BoxingBots.Robot
{
	public class SensorDataChangedEventArgs : EventArgs
	{
		public int Index { get; set; }
		public int RawValue { get; set; }

		public double CalculatedValue
		{
			get 
			{
				if ((RawValue < 530) && (RawValue > 80))
					return 2076 / (RawValue - 11.0);

				return -1;
			}
		}
	}
}
